package com.crm.business.agreement.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.crm.business.agreement.mapper.BillAgreementContractParamsMapper;
import com.crm.business.agreement.mapper.BillAgreementTemplateParamsMapper;
import com.crm.business.agreement.service.IBillAgreementContractParamsService;
import com.crm.business.agreement.service.IBillAgreementTemplateParamsService;
import com.crm.business.servlet.BaseServiceImpl;
import com.crm.common.agreement.entity.PO.BillAgreementContractParams;
import com.crm.common.agreement.entity.PO.BillAgreementTemplateParams;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class BillAgreementContractParamsServiceImpl extends BaseServiceImpl<BillAgreementContractParamsMapper, BillAgreementContractParams> implements IBillAgreementContractParamsService {

    @Override
    public int addList(List<BillAgreementContractParams> list){

        for(BillAgreementContractParams params : list){
            getBaseMapper().insert(params);
        }
        return list.size();
    }

}
